package com.hrm.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/*
 * 用户实体类
 */
public class User {

	private Integer uID; // 用户ID
	private String uloginName; // 用户账号
	private String uPWD; // 用户密码
	private Integer uStatus; // 用户状态码 1为启用状态 2为禁用状态
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date uCreateTime; // 用户创建时间
	private String uName; // 用户身份 普通用户 超级用户
	private String uPhone; // 用户注册手机号

	public Integer getuID() {
		return uID;
	}

	public void setuID(Integer uID) {
		this.uID = uID;
	}

	public String getUloginName() {
		return uloginName;
	}

	public void setUloginName(String uloginName) {
		this.uloginName = uloginName;
	}

	public String getuPWD() {
		return uPWD;
	}

	public void setuPWD(String uPWD) {
		this.uPWD = uPWD;
	}

	public Integer getuStatus() {
		return uStatus;
	}

	public void setuStatus(Integer uStatus) {
		this.uStatus = uStatus;
	}

	public Date getuCreateTime() {
		return uCreateTime;
	}

	public void setuCreateTime(Date uCreateTime) {
		this.uCreateTime = uCreateTime;
	}

	public String getuPhone() {
		return uPhone;
	}

	public void setuPhone(String uPhone) {
		this.uPhone = uPhone;
	}

	public String getuName() {
		return uName;
	}

	public void setuName(String uName) {
		this.uName = uName;
	}

	public User() {
	}

	// 用于添加用户
	public User(String uloginName, String uPWD, String uName, String uPhone) {
		this.uloginName = uloginName;
		this.uPWD = uPWD;
		this.uName = uName;
		this.uPhone = uPhone;
	}

	// 用于修改用户
	public User(String uloginName, String uPWD, String uName, String uPhone, Integer uStatus,Integer uID) {
		this.uloginName = uloginName;
		this.uPWD = uPWD;
		this.uName = uName;
		this.uPhone = uPhone;
		this.uStatus = uStatus;
		this.uID = uID;
	}

	public User(Integer uID, String uloginName, String uPWD, Integer uStatus, Date uCreateTime, String uName,
			String uPhone) {
		this.uID = uID;
		this.uloginName = uloginName;
		this.uPWD = uPWD;
		this.uStatus = uStatus;
		this.uCreateTime = uCreateTime;
		this.uName = uName;
		this.uPhone = uPhone;
	}

}
